package com.gxuwz.core.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.gxuwz.core.model.Page;


/**
 * 业务层接口
 * @author Administrator
 *
 * @param <T>
 */
@Transactional
public interface BaseService<T> {

	 public List<T> list(T entity);
	 public T save(T entity);
	 public void remove(T entity);
	 public void update(T entity);
	 public List<T> findByHql(String queryString, Object[] params);
	 public List<T> findByExample(Object exampleEntity);
	 public List<T> findByEntity(T entity);
	 public T findById(Integer id);
	 public List<T> findByProperty(String property, String value);
	 public Page getPage(T entity, Integer page, Integer limit);
}
